/**
 * Project Name:mbr-comm
 * File Name:TerminalConstants.java
 * Package Name:com.aeye.mbr.common.base
 * Date:2015年8月20日下午3:54:51
 * Copyright (c) 2015, shengpeng@a-eye.cn All Rights Reserved.
 *
*/

package com.aeye.mbr.common.base.constants;
/**
 * ClassName:TerminalConstants <br/>
 * Function: 终端枚举 <br/>
 * Date:     2015年8月20日 下午3:54:51 <br/>
 * @author   shengpeng
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
public enum TerminalConstants {
	FORCE("10000","强制认证"),
	PLATFORM("00000","认证平台"),
	YDCLENT("10010","异地客户端"),
	EMBEDWEB("10011","嵌入网页"),
	PCCLENT("20010","PC客户端"),
	EMBED("20011","嵌入式F310"),
	ANDROID("40001","android"),
	IPHONE("40002","iphone"),
	POS("30007","POS机"),
	BCCLENT("40007","网页集成端"),
	M320("50001","M320"),
	AUTOMATHINE("10012","一体机"),
	LLW("60001","老来网"),
	
	KSPOS("30008","考试POS机"),
	KSEMBED("20013","考试F310"),
	KSBC("20022","考试网页版报名"),
	
	M320YB("50002","M320医保"),
	M320YY("50003","M320医院"),
	ANDROIDYY("40003", "Android手机医院端"),
	ANDROIDYB("40005", "Android手机医保端"),
	SMARTGLASS("80001", "智能眼镜客户端"),
	P310YY("30009", "医院P310"),
	F310YY("20012", "医保F310"),
	YBVIP("10013","医保VIP客户端"),
	MKS("70001","red android 医院端"),
	MKSYB("70002","red android 医保端"),
	
	/*扩充终端类型*/
	GGFW_P310("90001","公共服务P310"),
	GGFW_PHONE_IOS("90002","公共服务苹果手机"),
	GGFW_PHONE_ANDRIOD("90003","公共服务安卓手机"),
	GGFW_AIO("90004","公共服务一体机"),
	THIRD("90005","第三方接入"),
	
	OTHER("99999","其他终端");
	
	public static TerminalConstants init(String code) {
		for(TerminalConstants t: TerminalConstants.values())
		{
			if(t.getCode().equals(code))
			{
				return t;
			}
		}
		return OTHER;
	}
	TerminalConstants(String code,String name){
		this.code = code;
		this.name = name;
	}
	String code; 
	String name;
	public String getCode() {
		return code;
	}
	public String getName() {
		return name;
	}

}

